Update run_analysis.R

Switch to read.table and write.table throughout for consistency