Updated run_analysis.R to write the tidy data to a text file than return as a data frame object in the console