fix test print format
optimized command execution

Also inlined packet docs