improved toString and pout