Added debugging messages, will remove shortly...
Removed a bunch of debugging code. Fixed BOOLEAN type handling in the expression parser.