Documenting the binary format.
Fixes #312.