Cleaning code

* indentation: tab to 4 spaces
* curly brackets position
* etc.