Removed self-explanatory comments from selectCallback function.

Kept only the comments that explain the if-else conditions.