Added some comments

I looked over the file and added some comments, partly to ensure I understand things.
Does this look right?