quick auto formatting/cleanup of the code

- tabs to spaces
- optimise imports
- rearrange code
- add spaces around braces
- etc