update state machine comments