plotting results, need to add header to output files