Added docstrings to some methods in intervals.py