Updated for threading

Very rough implementation for threading. Speeds up conversion of large number of files.