Added comments to document index builder