add transitions to State Machines
Merge pull request #266 from stamm/patch-1

add transitions to State Machines