The zip code internals are mostly undocumented, but should be fairly obvious to anyone who is familiar with the zip file format.