Added file integrity checking, makes new log files for a particular data source if the file gets corrupted