Main class could be a path to a jar so replace slashes and trim it to create a valid file name.
Output headings for each metric, re-ordered metrics into a more logical order and calculated young and full garbage collection times.