added function deleteTxtFiles() line 121. This will delete all existing txt files. It is not called but could be an option to remove unneeded files.