Update Leapfrog.cpp

Energy Calculation.
File generation.