clean OCR related classes and tests and add language configuration