Named semaphores
Added command 'exit' to exit, now you can use both 'exit' and 'end'