now nested elements produce some results, fixed logic for circular elements, commenting out debugging code
made analogous logic changes to elliptical other_element routine