Documentation fixes

Fixing some typos, mostly grammar and capitalisations (e.g. consistent use of PHP/php).

Also added link to DRY principle on Wikipedia page, for benefit of readers who may not have heard of it.