update method added to s-trie; minor fixes.