Updated comments on compare function per Dan's comments