refactoring, added getState and setState (and save and restore) methods
version bump 0.1.2 -> 0.1.3
rebuilt
release 0.1.3