Refactor gem.
Update README.