updated dump_csv function. added capability to adapt to new questions