Added batch detection, confident detections and moved thread work into a seperate module so it could be mixed in detections and translations