Export to pdf working.
Merge pull request #108 from patrickdmccarthy/exportPDF

Export to pdf working.