implemented OCR and SVM trainers like classes, not like seperate programs.