release 0.0.5, refactor, add tests