Update csv_analyzer.rb

Fixed analyzer to do what it is supposed to do. Manually tested.