SPL bug fixes

Review commit by commit
could do 

    unique_line_content.each.with_index(1).map{ |line_array, i| ([i]+line_array).join(" | ") }