binary: make more idiomatic
Merge pull request #25 from JohnGB/improve-binary

add idiomatic test and example for Binary