corrected typos in presentation and code