Tidy up and unify coding style.

Remove spaces directly after ( or before ), add spaces between
operators and operands, etc.