added buttons for mode
Merge branch 'master' of https://github.com/matforest/tesseract