Continue writing documentation for the main function