add docstring for pkg.search function