Adds docstring to function.
Removes unecessary do notation.