Added possibility to resubmit job with new command line; few bug fixes.