More code formatting

Spaces to tabs
Corrected line endings