can now export to csv, xml, json. Fixes #25