added variable learning rate and momentum options (see nntrain)