Follow Coder/CodeSniffer coding standards.

Moved theme preprocess function to theme.inc

Changed some function headers to be more descriptive or to match
existing examples for consistency.