Merge pull request #32 from raho/master

fixes in join statements + handling of NOT predicate