Multilayer perceptron with backpropagation, minor adjustments required for proper functioning