Fix typos

This primarily corrects typos, including a couple of cases in which parameter names are spelled differently in the comment and in the argument list in the sample code.  I added a period in the Linux command line setup instructions (in the "If you're unfamiliar with Makefiles" sentence), because the MinGW and Mac command line setup instructions contain the same sentence and both include a period.