add basic protocol support
in example, output both keys and values
Merge pull request #21 from escherba/pf_interface_refactor

add basic protocol support