revised runAnalysis.R to write csv of tidy datasets