updated neural net classes

to support var number of neurons in hidden