PDFWriter: create separate list for warnings
This commit now creates a PDF with warnings listed first, before the results. Fixes #53.