Code style fixes

Remove tabs and use consistent indentation for objects.

Also fix one typo.