add tests, update readme