Add docstrings to analytical module