clone files in outdir. Added functions to submit batch jobs