[Feature] add state
Merge pull request #14 from lixiaopeng/master

[Feature] add state