Made template code more human readable

- Fixed indetations
- Fixed random tabs into spaces
- Unified the code

If this is good, I will do other templates too. :)