Remove unused code
Make "include" and "exclude" arrays optional in Rule class constructor
Add some unit tests