added Subtree() class, made progress on _code_clause() method, along with lots of other changes
removed get_relation() function, as likely superceded by Subtree() structure