progress
- add test for hash chained state
- lots of refactoring
- comment out logging to make test pass
- fix readme