Added a routine which also prints the objects velocities to file