Fixed 16 bit IMM being 17 bits, added binToHex