Added comments to document row handling code