Fix issues #9 #18 #3 about parallel processing