csv output working.

CSV output was finalized and all tests are running.