Export functionality

I'm starting to work on making exporting happen. Not at all ready to merge - I'm just curious what you think.
Why change the method signature to String? If anything, I'd prefer to change more things to Path when they represent a path, so please put this one back.