fixed #82
updates to pdf generation