added pipeline documentation and pipeline code for building class hierarchy