altered table writing output files so that all 5 tables are consolodated into 2. need to tweak this for time_plot column and possibly sorting