Vastly increased performance of the neural net

Also added the ability to store trained nets in a file