added comments to clear() attachment reset