added ps, ph and pht functions to print summary, head and headtail