cstub: documentation
cstub: simplify