Fix errors and update pdf