Track duplicates and print output

The current structure would track the duplicated files in the original hashmap variable, but not use that to print the duplicated file count and would always return a 0 for duplicated files. This behavior was an unexpected bug. My proposed changes would simply remove the unnecessary duplicated files variable, instead relying on the duplicated files hashmap to output # of duplicate files.