Now allows saving and loading the perceptron weights into a file.