add period based filtering in src/proc-doc.py