The main coding logic in the application.py script is missing documentation. Please add descriptions what is happening inside the code.