Added error reporting to MLP class.

Dealt with potentially invalid agruments for all public Multi-Layered
Perceptron methods. All input errors are now being caught and reported
via cerr, but no exception handling is currently involved. For
instance, the constructor is not halted despite eroneous network
topology.