All warnings corrected except for the ones in the math part.
PDF removed from git to avoid merge conflicts.