Each source file has to contain a preamble and a main part.
In the preamble you define general information about the source file like information for the title page or the switches that tell UDO how to convert the source file. The preamble ends with the command !begin_document.
The main part contains the text structured into chapters, sections or subsections. The main part ends with the command !end_document.