count_files added,process dubl has been  moved to calc_func.cpp and  problem with dublicates indexes has been fixed.