Move initializer to public section

* initialize is always private in ruby.
* Also fix some minor style issues