Fixed grab()
Replaced some instances of cstrhash with std::unordered_map