Formatted code per conventions.

Mostly converting spaces to tabs so the code is readable on GitHub.