trie.h: Comments added and code style revised