Created single function for velocity & std. dev.

I updated the Velocity_RunLength script to include sub functions that
perform plotting and fitting. This means that it can run as an
independent program.