functions to delete temp csv files and log files, modifications to existing functions