Made the historical plotting function more generic and added the ability to apply a generic function with single value output as a rolling window function.  I added this because the instantaneous power plots did not look good without applying an averaging function