Fixed calculation of unfiltered PDF

1. I think there was some error associated with using the file handle 23 for opening and closing the PDF files. I changed it to 88.
2. The viz.xy file was being opened one more time than necessary. Otherwise the code looks good.