change stack_npop implement and fix return pointer without length bug
1. fix main.c with return pointer without length bug; 2.fix a display bug that it show one more state without changes