Added filtering to lsdoc, ndoc and pdoc.