Updating class and adding much more functionality.
Merge pull request #4 from Theaxiom/master

Added much more functionality and comments (thanks to Theaxiom!)