fixed bug in binning function
added error checking in binning function
fixed variable name error
added error checking in binning function
added more error checking
added documentation for BrierScoreDecomposition