Add some error handling
Mocha test cases
Amend documentation
Add Travis CI