added option to choose between resume / noresume
Merge pull request #10 from phil65/resumeoption

added option to choose between resume / noresume