Added optional overwrite function in case the user wants to overwrite existing files in Outfolder.