fixed a lot of latex errors, nice PDF WITH CODE is being generated for the first time