Fixed bug in getVelocity + added some extra functions to the ocl file.