code cleanup

the `splitted` variable is not needed anymore (beyond the fact that it
was an awful spelling mistake)
add filter method

the `RichContext` class can now be used as easily in for-comprehensions
as in cps style