Tried to fix the various latex issues