add docstring for main()