added gap fixer
cres_in_range(), fix index variable
cres_in_range(), fix variable error
updates - cres_in_range and on