Updated code and the PA1_template.Rmd to contain comments and explaination