added Rakefile for gem building and updated main library