uniform coding style

most of the time there were two blank lines after a method, but sometimes just one.
one method didnt have a header, but all other methods had.
one wrong indentation of else block.