Added to the library the ability to return the learning parameters and weights

Added get functions for the learning parameters and weights. The functions
take a FILE * so that a file can be specified as well as STDOUT.
Added functions for Sum of Square of Errors

Functions have been added to calculate and return the Sum of Square of Errors.
Other changes have been made as to allow certain functions to print
their outputs to a file stream (or stdout, by setting NULL).
Added ability to change output stream for some functions

This is just a temporary messy workaround to allow out puts to go
straight to a different file descriptor other than stdout.