remove makefile, add mocha to npm test
add tests and refactor the lib for better error handling and flexible syntax
add travis ci