finished analyze.rb and beginning CLI implementation