Coding standards cleanup using astyle

Performed using `astyle --style=ansi -s2 -M80 -O -k1 -j -o`, and ignoring suggested spacing within switch statements.