Applied formatter to get a consistent looking code

The formatting style is designed after my prefferences and not the
default java/eclipse conventions (although I do use most of them)