Fixing the neural network

Still some scaling issues. Checking into this.