added support for multiple objects and item objects in trie
comments and checks for empty parameter