add pack and unpack documentation and thread information regarding context and connection