Since the formatting was getting lost using the .md extension, I have placed the details in "README.txt" file. Please look at "README.txt" file for information on code in run_analysis.R.