Resolved #2
Merge pull request #3 from Vijar/master

Resolved #2: Combined getState and setState into state