Fixed NTIMES > 4 segfaultbug and cleaned up code
Merge branch 'master' of https://github.com/harkathmaker/ocr-applications