Moving energy program from Ring_and_RFstation to Global_parameters...
Work in progress