input filenames and shape are not mandatory
Unification of print, stat and extract

The new write subcommand is equivalent to the previous three subcommands.
Closes #5