Removed unneeded parens and adde a docstring