Minor style refactorings and loosened version constraint in gemspec.