Move plot functions to new file and update headers.
Initial work on data aggregation from parallel computation