Neural network corrected. All functions now working properly!