Squash the shell script and Ruby script into one single Ruby script. Update README accordingly.