Refactored some of the decision tree code, added license information