use list instead of deque as base container of CommandQueue
added Doxygen example