Impelement sketch of file format.

Closes #10.