Improved some code comments and CalculateErrors()

Added some comments and improved some existing ones.

Improvements to Brain>NeuralNetwork>CalculateErrors()
*improved efficiency
*removed some unnecessary resource usage

Modified the SigmoidDerivative() function