Started write up, added tests for hash function