Jb reactions review

How that check is done? There could be possible problems with rounding errors. I suggest to interpret branching ratios as weights and always normalize them by their sum. The these weights have to be non-negative, so we should declare the array as Array(Double(0.0)). 0.0 is lower bound of the input values.