Improved printPtree and made accept automatically create temporary Ptrees