update results and main accept arguments
modify lauch, add max_threads