Code style cleanup, no logic changes.

Hey, I'm fairly new to this stuff, but wanted to learn more about it, so started reading through the code, and thought I'd clean up some of the code style as I went. No changes were made to the logic, just adding spaces to make it more readable and consistent.

Cheers! Will send more as I go through the other files.