adding docstrings to modesl