Clean up error handling in Binary example. Add additional test cases
Merge pull request #29 from ricemery/binary

Clean up error handling in Binary example. Add additional test cases.