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