added missing dirty matrix flag, initial modelviewmatrix gen, cosmetics