Move statemachine documentation

Move statemachine documentation, was included in wrong header