improve test.js and add .travis.yml file for build monitoring
start to fill in index.js and add tests to test.js