Added docstrings to algos