Fix bug with spaces in csv export; add team csv export.