refactored code to smaller more meaningful file units, set up files each thread
queueFile() is now done its own thread