Velocity stuff added to MD_main