Bitwise operators, hex support, minor fixes