Some formatting clean moving towards standard ruby

* One line between methods.
* Change tabs to two spaces.
* Long lines with {} block changed to do..end style to shorten line length.