Beautified the code

Converted spaces to tabs, and fixed the indentation.