Cleaning warnings

- Reindenting all code.
- Adding some consistency to syntax.
- Removing logs.