Small change to GetEnergy

Get energy still works the way it always did. However, it can now take a second argument which turns off the random number that is added following the spectrum contraction if it is set to "false".