[Core] Replace all tabs by space and review indetation (fixes #2).

Review indetation.