Added export feature (closes #6)