added csv formatting and input file header