Using moving average for piecewise velocities

Manually massaging my data
A slew of bugfixes

Go team go!