added fuzzy hashing, mongodb support, and other fixes