Indentation cleanup and fixes (tabs vs spaces)

There was indentation mess in the code (indentation by tabs, by 2 spaces, 3 spaces, 4 spaces were all mixed even in the same line) so I've cleaned it all. Now all files use indentation by tabs.