- fixed the velocity and distance (maybe).
- cleaned up code a bit.