Added comments

Clarifies purpose of while loop