refactor of diagraphic trees
new examples and cleanup
fixes