supporting local_predictor of pipeline in thread/process mode, fixing pipeline examples, and adding lots of comments