fixed cnt_add() function, simplify and correctly document cnt_add_i() function