Here is the bit of the proof I didn't really understand:
Let $X=X_1\cup X_2$, where $X_1$, $X_2$, $X_1\cap X_2$ and $X$ are path-connected and $X_1, X_2$ are open subsets of $X$. Moreover, assume that the generator set $G_1$ with the relations $R_1$ gives a presentation of $\pi_1(X_1)$ and similarly $G_2, R_2$ gives a presentation of $\pi_1(X_2)$ and $G_1\cap G_2=\varnothing$. Also $i_1:X_1\cap X_2\subset X_1$ and $i_2:X_1\cap X_2\subset X_2$ are the usual imbeddings.
Now here is the statement:
The generator set $G=G_1\cup G_2$ together with the relations $R=R_1\cup R_2\cup R_{12}$ gives a presentation of $\pi_1(X)$, where $R_{12}=\{i_{1\ast}(\alpha)=i_{2\ast}(\alpha):\forall \alpha\in\pi_1(X_1\cap X_2)\}$. Why is $R_{12}$ so strange? What is the idea behind it?
I understood that that new generator set generates $\pi_1(X)$. So it comes next to show that $R$ is the kernel of the homomorphism $\theta:F(G)\to\pi_1(X)$, where $F(G)=F(G_1)\ast F(G_2)$ and $F(G_i)$ are the sets generated by $G_i$. How can I show the inclusion $R\subset \ker(\theta)$?
$R$ consists of words, right? If a word $w\in R_1$ or $R_2$ we are done because $R_1, R_2$ are the kernels of their own homomorphisms $\theta_1$ and $\theta_2$. But what happens when $w\in R_{12}$?
I think I have a wrong picture in my head about relations and presentation.