Updated writer.py
Merge branch 'exportToPDF' into develop