Add Gemfile to manage dependencies using bundler
Add commandline parsing

It's possible to use the script without a need to modify it.