ht.h:add comments. unittest.c:code clean up