* reorganize code slightly
* add example of cqueues polling