LGTM with inline comments, thanks!
nit: In case an outer loop is vectorized, + period at end of sentence. But it would also be OK to remove the last sentence IMO.
here it will use outerloop whereas above it will use outer loop. It would be good to use outer loop in both cases.