write out to csv
fix and test csv output
ignore empty lines
ensure bad input trigger errors