[noticket] Added docstrings to logic functions