Removed switch statement.
Added support for not (and generic unary) operator.