adding lots of docblocks and the getRule to the Filter class