produces two files tidy_data and tidy_data_averages