NN update 2

New functionalities for momentum term; added scaling for the learning
rate