fixed division by zero, and accomodated decision tree to importance function