changes to class PathEnergyAnalysis (still fixing bugs)
added support for local polynomial approximation in class PathEnergyAnalysis