Make hash function available again
Add unit tests
Doc fixes