Version bump to 0.3.1
adding version checking
Regenerate gemspec for version 0.3.1