implemented issue 24 (get current state)
Merge pull request #35 from stephen/issue_24_currentstate

currentState Implementation