Add comments to buffer manipulation