added command line parameters for state file input and output
don't use extrapolator in resumable mode. it introduces glitches.