Refactored/cleaned up code
Added Gemfile and gemspec.