Threads mostly working, Semaphores and signals need work