DOC: Add docstring for refine. Also, do not modify coord in place.