Writing the parameter file

Output the parameters as a CSV file in the working folder