Allow conversion of parameters to string

Instead of having a method for printing out the parameters, wrote a method for converting them to a string, as then I can also use this to generate an output file.