Added the functionality of writing all the parameters used to a new file, when the write new file button is clicked