Write output of the validation to a CSV file

New usage: python main.py input.csv output.csv