added link to state machine diagram