Added docstrings in design