Added refresh and delete log functions, added mutexes for the daemon, and added a header with comments to the exported CSV files.