cleanups
Big cleanup, pulled parallel control out of thread semaphores for better signal handling