Should not version the pdf, I'll make a better way.
Some refactoring.