PROBCORE-241 Variables are now only created when running a script was successful
PROBCORE-240 Added newlines at the end of each line so that the output is not wierdly wrapped.
PROBCORE-184 created method to translate XML trace into groovy script