Further tests of main_Test.r, added saving of parameters and output to specified folder.