Debug state changes
Merge pull request #7 from kennjacobsen/debug-on-state-changes

Debug state changes