refactor library
add tests
Release 0.0.1