[transformation] Codestyle improvements

This includes
- Removal of trailing spaces
- Some indentation issues