add hexToBin() and auxillary functions