Added comments to queue_clear and queue_empty