Fixes error in doc. Corrects docstrings in some functions