Corrections + generation of pdf.