Added the functionality of writing all the paramters to 2 separate files on selecting the write new file option