Add space between `function` and `(` per style guide.

No functional changes.
comments and naming per review.
also check for missing section headers.