Merge pull request #1 from cantino/master

Rewritten as a Gem, with more standard Ruby syntax
Added license
point the documentation and gemspec at Pearson's info