edited docstring in refine.py