cosmetic changes

* fix indentation using 2 spaces
* add or remove blank lines
* add missing spaces surrounding operator, after colon or comma
* use new hash syntax
* use def with parentheses when there are parameters
* prefer inline comments instead of block comments
* don't use `::` for method calls