#3 update print() to print_cnt()
Add print_idx() on branch hotfix
Update lib.h as well