Coding standards - two-space tabs, line endings, remove a couple of unnecessary lines (return; at the end of a function and a global that was never used)