revised runAnalysis.R to output text file and added additional comments to script