ocaml-gpt: rewrite README examples to typecheck
The blocks chained [match ... with | Error -> ...] expressions at module
top level (which doesn't parse) and referenced unbound [reader],
[writer], [header_bytes], [read_sectors]. Recast each block as a
function or a top-level binding ladder so the snippets typecheck and
are self-contained.