Fixed a typo in queue, removed a leftover print statement used to debug semaphores

Fixed a typo in queue, removed a leftover print statement used to debug semaphores