added public API for NPM module
travis.yml for automated testing
fixed public api
fixed dependency