Added API for state
Merge pull request #2 from vairix-pvilas/state_model

Added API for state