Add `createAndWritePipe`.
Add `ERROR_NO_DATA` condition on write in `common.c`.
Update doc with `createAndWritePipe`, cleaner example placeholders.