Add docstring for main functions