Added function to convert from hexstring to a bitstring.