Fixed error and added documentation for discreteSplit.
Implemented continuousSplit for integers.
Fixed out of bounds error in classProbabilities.
Implemented gain functions.