Porting over code from ruby
Updating readme.md