Fixing spacing and adding docstring.