Extra ecount deocs and tests
Implement pack API function and protocol