Refactoring... Changing coding rules

Brackets are now placed below functions.