fatal bug in NN1.py fixed. But still there are bugs in force-match gradient routine in NN1.py.