finish pipeline.go and 2 simple examples
add Error type and more example