Changed code to better fit code conventions.
Changed writeFile to private
Merge branch 'master' of https://github.com/lagecamp/CMPUT301W13T02.git