Add early stopping
Add saving and loading of networks as JSON