Edited some comments.

Added some comments that give an overall description of what the
functions do.