Add adaptive learning (local gain for each weight), fix bug related to momentum.