finished cleaning data, wrote aggregated by mean data out to a txt file