add toHex helper to readme examples