organized files into a tmp folder, and added a flag to remove the necessity to have two separates scripts for email repeats -- now there is a flag in the script