Added multicore processing to the compile shell and fixed some bugs.