Relation object and master array created, establishRelationship function seems to be working, helper functions for locating relations created, most seem okay