Add import / export support

Closes #1