adding modified analyze.rb
file cleanup