added documentation for queues