added id for tree in prettyPrint()