Adds some code documentation (#6)
Merge pull request #30 from hisohito/master

Code documentation