Fix identation and spacing. Use CSV.foreach instead of parsing