Update code to work with Ruby 1.9
Update README about Ruby 1.9