remove needress fprintf
improve readvarint32
fix memory leak
refactor hash table operation