added basic tree printing