Implemented and tested semaphores. Added a shell command for testing semaphores.