Add fuzzy hashing for files
Update tests
Add more error checking