Fix indentation and tab/space issues

- Removed spaces/tabs at the ends of lines
- Changed tabs to spaces