docs: add comments in queue implementation