4.0.1

From changelog:
reduced variables usage
added more test coverage
replaced ternary operators with simple if statements
commented out puts statements
changed README from Markdown to RDoc format
added Gemnasium and Travis CI badges

If accepted, be sure to update TravisCI and Gemnasium references to your own account in the README.rdoc.