added library for moving files
Added code to move results from local scratch to global output directory
fixes to results copy from tmp to final output