add tests
added verifier function, and some other refactoring
0.1.1