Bug fix and docstring cleanup in distributions