Add method to hex-encode a binary string.
Handle string argument.
More comments.