Edit indentation and spacing

Especially in variables initialized in for-loops.

Also add `return 0;`

-----

This isn't ready to merge or be reviewed yet; I noticed that my re-indented stuff it looking funky. I'll update that later tonight, when I have access to Sublime.

(Also, hi @xandrasings!)