Eliminated warnings accross all platforms.

Implicit conversions were particularly running amok -- they have been
mercilessly obliterated.
Converted all tabs to spaces.
Beautified code.

Re-indented all lines with 2 spaces.