Expose ability to save and restore state.
Merge pull request #193 from kjpublic01/expose_save_restore_state

Expose ability to save and restore state.