Fixed csv output and added tsv output.