Added check for existing output files in directory running, and a flag to not overwrite them