bftd.cpp: incorporating creation of training data, training and forward testing
bftd.cpp: incorporating creation of training data, training and forward testing