Delete incomplete files when errors occur
Fixed small logging bug
Added rudimentary, but working\!, concurrency code using threads