doc: add a tutorial for writing filters.