adds csv support
add csv support
fixes bug regarding download. fixes #3