Added docstrings to main.py.