Add tests, update readme, setup .travis.yml