Added the logo on the PDF and fixed some bugs.