Completed code with comments
Merge branch 'master' of https://github.com/megdna/ProgrammingAssignment2