Added ability to save state
Added ability to set state saving duration
Merge pull request #4 from loonytoons/statesaving

Added ability to save state