Added power and energy plotting and calculation.