Remove LaTeX warnings and add some stuff