started hoisted num_element and num_react out
moved nj to instance attr
moved nj to instance attr
moved chmatrix up
moved chmatrix up
a little more cleaning up