added proc_sample_len to pwin.cpp
removed proc_sample (regex) from pwin.cpp