Added comments to reset() code