add main.rb (cli interface)