Added some comments to part of the codebase.