add flags to energy histogram script
add option for output to file
add escape characters to output file name
remove double spaces
add adjustments suggested by @ax3l
Merge pull request #542 from PrometheusPi/fix-BinEnergyPlot

Enhance BinEnergyPlot