added neural network class, added gui