Added confidence based threshold for training, organized functions
Added confidence based threshold for training, organized functions

robcapo/ths,robcapo/ths,robcapo/ths,robcapo/ths,robcapo/ths,robcapo/ths