Moved to index.js and added tests
Added example to README
Added travis config
0.0.2