BUG FIX: some extrem cases in the update-tree algorithm was missing
BUG FIX: plot tree data now works even if the tree data is empty
Fixed merge conflict