Added the beginning of a thread framework.  Still needs more work.  Does at least write 10 files at a time now