Added ability to print metadata at start of run.
Made metadata extensible, and added to CSV output.