move hex encode/decode out of tests
formatting readme change