Fix printToFile() bug
Fix printToFile() bug

Closes #104

tresf/qz-print,qzind/qz-print,klabarge/qz-print,tresf/qz-print,tresf/qz-print,klabarge/qz-print,qzind/qz-print,klabarge/qz-print,qzind/qz-print,qzind/qz-print,qzind/qz-print,tresf/qz-print,qzind/qz-print,klabarge/qz-print,klabarge/qz-print,tresf/qz-print,tresf/qz-print,qzind/qz-print,klabarge/qz-print,klabarge/qz-print,tresf/qz-print,tresf/qz-print,qzind/qz-print,qzind/qz-print,klabarge/qz-print,klabarge/qz-print,tresf/qz-print