Update config.rst

Fix typo in example code that causes error in an actual config file.
Merge PR #997
Fix additional typos in docs (thanks tomthorogood)