refactor state representation
Merge branch 'master' of github.com:ztellman/automat
refactoring, and start of work on compilation