add headers for nmatrix and define stuff
add nmatrix headers and define n init stuff