Added comments to the functions
Merge pull request #1 from DanWegmann/master

Added comments to the functions