add network:stop, refactor neuron and network