continued tweaking / commenting / checking of LAMSTAR NN code