Fixed bug in ocr and made it completly async.
fixes #6
fixes #7
fixes #8
fixes #2