fixed.
tag.
document updated.
document updated.
Use little-endian unsigned 32-bit ints in output format.

The old code used native ints, which meant compressed files were not
portable across machines with differing endianness or integer width.