Parent / Child Relationship Code Gen

Parent and Child relationship code generation has begun. Function
created that goes through children retrieving code and adding to parent
(where possible)