Bugfix, regarding the setting of the energy model
Minor refactoring
Added the processing script, written in Perl