.......... [ZBX-8169] added some code comments and made a few corrections