Added comments and clarification to existing comments.