Corrected a number of minor typos

Hi Daniel; this pull request just fixes some minor typos in a few different chapters (my text editor seems to have also removed some extraneous trailing white spaces).