added min_chi_score and min_distance command line args.