Documentation for pack and unpack functions