Add comments to clarify the structure of the extension.

Add inline comments to document how the extension works and where
more information about the techniques and conventions it uses can
be found, so that the code will be more accessible to novice
developers.

Change-Id: I089adeb8230ebb9b43f63011015ee214b775ee4e
Merge "Add comments to clarify the structure of the extension."