made it neater, added some comments
Merge branch 'master' of https://github.com/fryingpan/Assignment2