finish length based filtering in src/proc-doc.py