Code linting

Code deserved some cleanup. In particular
- most operators are surrounded by a single whitespace
- use consistently uppercase for TRUE, FALSE, NULL
- commas are followed by a single whitespace.

The whitespace's rules aren't applied to function declarations.