Added try-error to pdf to close device if an error occurs.
Added numtext documentation. Kluge fixed the pdf issue. Fixes #6.
Added rogue assignment
Merge branch '6-pdf_device' into dev