minor refactoring, added separate modality classifier, and updated UKAML
classifier