Fix errcheck, add sample-complex, export *Writer.

sample-complex is meant to be used as an example how to do inner commands.