Updates hasher to get substring in a better way.

Also updates log statements to make the endian-ness of the values clear.