Improved apply functionality of State Machine
Merge pull request #19 from kreta-io/state-machine-improves

Improved apply functionality of State Machine