Adding chunks module.
Updated the file format diagram.
Added some chunking functions and tests.