Put code into standard format

each { or } gets a new line, and they are used even for single-line blocks of code.