creating a dictionary that stores names and ids of parents and affiliates on load
adding error checking
Merge pull request #220 from mehtadev17/hierarchy_names

creating a dictionary that stores names and ids of parents and affiliates