refactor

move data post-processing out of plot functions
create separate summary and raw data files