Added the tree to console printing function