add travis.yml, update readme for new functional interface