added getHex (converts to hex string)