Merge pull request #29 from jnjosh/master

Refactoring and testing
Added rake task to generate docs
Merge pull request #30 from rpwll/master

Added a Rake task to generate documentation