addding fsm doumentation