Normalized whitespace and formatting

The formatting is based on the most frequent style in the main codebase.

Whitespace-free diff: https://github.com/LLK/scratch-flash/pull/207/files?w=1