Cleaned up and documented verb state machine.