rewrite default.cfg against tesseract upsteam, introduce toggleui, fixes