Removed environmanet variable, two more cosmetic fixes
Added support for IS NULL
Fixed __sleep behavior