Updates and corrections

Corrected errors in the plot command, added rate calculations for the
smoothing, this still needs to be incorporated into an apply/for loop