changed it output a csv with some helpful data also added a filter variable.

its all pretty ugly and specific right now. Will work on getting it to a
more generic state