Fixed ruby syntax for 1.8
Update README
Update sample code