Full update

C++11 threads, new semaphore, new queue, new mechanics.