adding support to export tables to CSV and PDF, closes #6