Refactor things a bit

- Use binary patterns to show structure of payloads a bit more
- Better delimitation between public and private APIs
Merge pull request #1 from ferd/refactor-ferd

Refactor things a bit