added temp variables to support more complex network structure.
Feedforwardnetwork allows output nodes without any training data.