Beautify code

* Remove redundant and add missing spaces
* Better quotes
* Better identation
* 1.9 hash syntax
* Truly boolean methods