Change style of code declaration to make Sublime Text happy and because it is arguably easier to read this way
Fix indentation and use of tabs vs spaces