in the middle of making tree redrawing work
not sure about these changes, i think i just cleaned up code
merged master and tree_visualization