Fixed returning processes, now working + semaphores tested and working.