Create or edit

Fixes issue #1.