finished 'ChooseLeaf', partly 'AddSegment'
edited add