Added documentation
Fixes for documentation

Based on github comments by ghoneycutt
Merge pull request #3 from emahags/issue-documentation

Added documentation