Completion of 1C

Added multithreading functionality and fixed some bugs from 1B.