beautified the code
fixed some spelling and added some notes for a few slides