Added a tree printer