Add a repr for state
Add tests and fix breakpoints and pypy bugs