added one comment about the main control loop