Timeline CSV export, removing debugging code

Adding a first crack at a timeline export in CSV export, and cleaning up all the debugging so that testing can occur.