Some cleanup of hashing code. Added ability to clear the map.