Refactor and add shell.rb
add sample.yml as configure