.......PS. [ZBX-8494] fixed code formatting and comments