Clean up formatting

- replace tabs with spaces
- adjust braces