Added a few more comments. Added return values for some functions.
Merge pull request #5 from Susurrus/master

Added a few more comments. Added return values for some functions.