formatting improved

* ugly whitespaces removed (spaces between tabs)
* correct indentation of {