combine feature computation and classification, and factor out feature saving
update compute_features.cpp for new callback mechanism