Added export command

Fixes #115
Fixes #105