Improved docstrings in repeat.py