some bugs in NN1.py fixed, but still remained.