Updated output, added commenting for Trie