Added support for exporting results, closes #3. Needs refactoring to remain DRY