Environment in separate files, bug fixes, added backend flag

(Command line flags overrule options in parameters.csv)