MNT: Updated func docstring and clarified loop internals