Add some documentation to factory_base.h and pipe_base.h.