Update compare.php

Clarify function descriptions/comments