Anaphora resolution updates

@linas

Added unit tests.
Fixed filter bugs.
Fixed some minor bugs.
Updated documentation.
Cleaned up the code.

Next step:
Continue testing with it.
Check if some unit tests are missing.
Continue updating documentation.