Final 1.0 revision
  * fixed and tested thread matching with filtering;
  * settled some code refinements.