added pretty print function for tabular data