This is my first post here, I found this forum yesterday while googling, and was amazed to see so many famous developers and authors around.

For the last year or so I've been interested in constrained multi-body simulation, with accent over bi-lateral constraints rather than impact/contact. I believe I've gathered most of the free papers that are available, but while most of them use a velocity-based constraint approach and iterative solvers, Baraff's "Linear-Time Dynamics using Lagrange Multipliers (1996)" is aimed at the acceleration-based direct linear method of solving them.
I'm neither a mathematician nor a physics engineer, so most of the concepts are a bit complex to me, but most of that Baraff paper is really easy to follow, so in the last months I've been trying to write a small physics engine based on his algorithms and at first look it seemed it was working fine. All the multiplications and summations were correct, with proper-sized matrices etc., I even did them on paper myself, so unless there's a mistake in the paper itself, everything should've been working fine when I actually feed it real body and constraint data. It wasn't to be so though. The two "factor" and "solve" algorithms aside, they seem to be working perfectly, so either I'm not building the constraint Jacobians properly or I'm not using correctly the produced multipliers for getting the constraint forces.
My questions:
1) Has anybody actually written a code based on the algorithms from Baraff's paper and is it possible to take a look at some parts of it ?
2) Since in all papers I found they use velocity-based constraints, there's no explanation or an example of what exactly is the "c" vector (notion from Baraff's paper) that appears after differentiating a velocity constraint w.r.t. time. For example, in a ball-joint, I first had the impression I could leave the "c" vector at zero, since the constraint is holonomic, but I'm not sure at all if that's true. Atm, I'm just using the Jacobians produced on the velocity level, and I thought they should work for the acceleration level too. But they aren't and I'm not sure if it's something to do with deriving the "c" vector or it could be something wrong with either the algorithms or even something else.
I could try and make a small movie of my two bodies connected by a ball joint test, as it'd be better to see what's going on. It seems to me the torques are correct, the bodies rotate in a proper way in comparison to each other as if they're connected with the joint, but the linear velocity doesn't seem to follow the constraint at all. I tried manually entering static "c" vector values and it seemed to have an effect, so I believe I have to derive that each frame, but I simply have no idea what it's supposed to be.
As I said, I'm not much profficient in calculus, so please excuse my rather basic explanation. Thanks in advance for all answers!