CHANGES: pdf_writer many many changes...table of contents is not working at this moment.