Retab, whitespace cleanup, remove one-off PI define.
Applied astyle.
More whitespace/lint fixups.