factory.py: updating docstrings