Added some comments and documentation
Merge pull request #1 from flikka/master-documentation

Added some comments and documentation