Comments and completing loop

Iterates across rows in index file, calculated the chi-squared distance
between row (image data) and our input image’s data. Adds the results
to a dictionary.