commented out code at end of file that reads in .dat files, was put at the end to output the .csv files