Added IsRare, but not tested
Tested IsRare
Improved the training data export workflow
Corrected comments