Add offset to chunk header

This should work, done from a mac at school so I can't really test it. Will check first thing when I get home. Should add the offset of where the ChunkElements begin to the header for the newly created Chunk.