Those fixes we needed

Here you go!

Might want to make sure "computeDerivatives" is OK with one value. I'm not sure what its doing, I've understood only enough to fix the problems I'm experiencing.

Cheers!