Added ability to specify selector

Now you can specify a selector in rule sets.