Replace "global" variable with "module level" variable consistently within the document.
Apply Tom's feedback
Fix a typo
Merge pull request #530 from noakesmichael/spec-module-level

Replace use of "global" variables with "module level" variables

Reviewed by Tom
Output of "make spec" checked
PDF inspected