Added docstring and updated dolines