Replaced monkey patching with Ruby 2.0 refinements. Added tests. Fixed class definition gem conventions.