added a bunch of unit tests. revamped/fixed logic to update parent/child relationships after operations. added function to construct AltImplSetElement objects