made a tree function for dicts within dicts

dictionaries are created automatically within dictionaries as needed