improved documentation and readability, fixed u coefficient so that network converges for the XOR example too