Refactored the portion that writes the trained model to output streams into a trait so that the logic is handled by derived classes. Added variable importance calculations. Added the spire dependency.