Category exclusion added.

I've added the category exclusion feature (setCategoryExclusion.)