added code to save/open neural network
added code to save/open neural network