document filtering functions
more tweaks to make R CMD check happy (don't require imported packages, do document exported functions)