Very Different YARP code

Changed the training and classifier and the recognition after the
training.