minor changes to print functionality
Merge pull request #183 from vishwasbabu/avik

minor changes to print functionality