added functionality that allows saving of NN state to file at end of sim, and importing of weights from this file at beginning of sim