Spelling corrections, fix syntax error in counter.r, whitespace cleaning.
Merge pull request #1 from NeilFraser/master

Spelling corrections, fix syntax error in counter.r, whitespace cleaning...