---Takie plotting out of perp_fit. More general function now, which just
takes a correlation function with any number of time steps and gives
average fitting parameters for that time frame. Introduce time_window
variable which specifies the size of the time windows to average over.