fixed target datatype being template dependent
implemented basic (not-working) ocr training