Add the add_docstring decorator factory function

Minimizes repeated code and will make life easier should docstrings  ever need to be changed.