Begun work for velocity

Updated the main function and added support for velocity for particles. At this point the velocity does nothing, but should be fixed soon