a few changes and add new functions

1. advanced training allows to cont. from previous training call
2. support more than one neuron on the output layer
3. add BP variables to the net obj