Update 1

Added Semaphores and fixed other minor errors
Still working on it