finished buildCR

...it compiles, and the strict agreement of the source and target in the toy example has been improved, but there are still errors in the source and target in degrees 0 and 1