Add log handler
Minor fix in pipe. Add example "simple.go"