Fixing operators (`not` instead of `!` and correct implementation of `xor`)