Refactored code. Moved hash functions back to the malware class (until it makes sense to do otherwise)