General cleanup commit

* Improve conformance with the Ruby Style Guide
* Expand data type support (including IP address)