Refactored content filtering

Moved content filtering to the dictionary since that's where it belongs.
Documented dictionary interface.