Removed group trie since the plugin doesnt allow for multiple groups anymore, made tag trie global, fixed some mistakes