Fix indentation
Code style

* More indentation fixes
* Use whitespaces more consistently
* Do not use tabs to align around operators
Use consistent indentation for one line comments
Fix invalid whitespace char

Do not use U+00A0 as whitespace character in code.

What the heck? Is someone using Microsoft Word as a code editor?
Merge branch 'style-cleanup'
Do not define loop indexes in global scope