add latex formatting and fix up exercises of 1-2