added path to tessdata directory as parameter