textwritter - added print functionality