modified unique_file_hash to be more modular for file matching and non file matching for stuff like rules and groups...also, changed file_id for checks to the be the original file_id when first scanned