I am trying to understand the proof of the following statement:
Let $A$ be a commutative ring, let $M$ be a finitely generated $A$-module and $I$ an ideal of $A$ such that $IM=M$. Then there is an $a\in I$ such that $(1-a)M=0$.
Proof. If $M=0$, there is nothing to prove. Let $M\neq0$ be generated by $m_1,..., m_n$. Since $IM=M$, there exist $x_{ij}\in I$ for $1\leq i,j\leq n$ such that
$$ \begin{pmatrix} 1-x_{11} & -x_{12} & ... & -x_{1n} \\ -x_{21} & 1-x_{22} & ... & -x_{2n} \\ \vdots & \vdots & \ddots & \vdots\\ -x_{n1} & -x_{n2} &...& 1-x_{nn} \end{pmatrix} \begin{pmatrix} m_1 \\ m_2 \\ \vdots \\ m_n \end{pmatrix}=\begin{pmatrix} 0 \\ 0 \\ \vdots\\ 0 \end{pmatrix} $$ Multiply on the left by the adjoint of the matrix $T$ to get $$ \det T\begin{pmatrix} m_1 \\ m_2 \\ \vdots \\ m_n \end{pmatrix}=\begin{pmatrix} 0 \\ 0 \\ \vdots\\ 0 \end{pmatrix} $$ which implies that $\det (T)M=0 $. But $T\equiv I_{n\times n} \mod I$, so $\det T\equiv 1 \mod I$, so $\det T=1-a$ for some $a\in I$.
I don't understand why do the $x_{ij}\in I$ exist and where does this matrix come from.