Since all the rational points of S_{2} are distributed equally on the disjoint rational curves B_{i} constituting the irreducible components of the divisor D_{2}\subset S_{2}, then \#S_{2}(\mathbb{F}_{q^{2}})=(q^{5}+1)(q^{3}+1)(q^{2}+1). Moreover, \#\mathbb{P}^{1}(\mathbb{F}_{q^{2}})=(q^{2}+1), so we can conclude that the length n of the code is
n=\#\mathcal{P}=\#S_{2}(\mathbb{F}_{q^{2}})(q^{2}+1)=(q^{5}+1)(q^{3}+1)(q^{2}+1)^{2}.
Let L be the line bundle L=\mathcal{O}_{T_{2}}(b). In order to compute the dimension of the code, we have that dim \Gamma(T_{2},L)=dim \Gamma(S_{2},p_{2*}L), with p_{2*}L\cong Symm^{b}(V_{1}\oplus V_{2}).
As a result of Lemma 4.2
Symm^{b}(V_{1}\oplus V_{2})=\bigoplus_{\substack{i_{1},i_{2} \in \mathbb{N}^{2} \\ i_{1}+i_{2}=b}} \pi^{*}i^{*}\mathcal{O}_{\mathbb{P}^{4}}(t_{1})^{\otimes i_{1}} \otimes \pi^{*}i^{*}\mathcal{O}_{\mathbb{P}^{4}}(t_{2})^{\otimes i_{2}}.
Now, global sections of a direct sum of line bundles satisfy
\Gamma(S_{2},\bigoplus_{\substack{i_{1},i_{2}\in\mathbb{N}^{2} \\ i_{1}+i_{2}=b}} \pi^{*}i^{*}\mathcal{O}_{\mathbb{P}^{4}}(t_{1})^{\otimes i_{1}} \otimes \pi^{*}i^{*}\mathcal{O}_{\mathbb{P}^{4}}(t_{2})^{\otimes i_{2}})\cong\bigoplus_{\substack{i_{1},i_{2}\in\mathbb{N}^{2} \\ i_{1}+i_{2}=b}}\Gamma(S_{2},\pi^{*}i^{*}\mathcal{O}_{\mathbb{P}^{4}}(t_{1})^{\otimes i_{1}} \otimes \pi^{*}i^{*}\mathcal{O}_{\mathbb{P}^{4}}(t_{2})^{\otimes i_{2}}),
and since pull-back commutes with tensor product, it follows then that
\begin{aligned}
\bigoplus_{\substack{i_{1},i_{2}\in\mathbb{N}^{2} \\ i_{1}+i_{2}=b}}\Gamma(S_{2},\pi^{*}i^{*}\mathcal{O}_{\mathbb{P}^{4}}(t_{1})^{\otimes i_{1}} \otimes \pi^{*}i^{*}\mathcal{O}_{\mathbb{P}^{4}}(t_{2})^{\otimes i_{2}}) & \cong\bigoplus_{\substack{i_{1},i_{2}\in\mathbb{N}^{2} \\ i_{1}+i_{2}=b}}\Gamma(S_{2},\pi^{*}i^{*}\mathcal{O}_{\mathbb{P}^{4}}(i_{1}t_{1}+i_{2}t_{2}))
\end{aligned}
Furthermore, as \pi is birational onto Z, we obtain (see Theorem 2.31 in [Iitaka82])
\Gamma(S_{2},\pi^{*}i^{*}\mathcal{O}_{\mathbb{P}^{4}}(i_{1}t_{1}+i_{2}t_{2}))\cong\Gamma(Z,i^{*}\mathcal{O}_{\mathbb{P}^{4}}(i_{1}t_{1}+i_{2}t_{2}))
Since Z is the complete intersection of two hyper-surfaces H_{0}, H_{1}\subset\mathbb{P}^{4} of degrees
q+1 and q^{3}+1, respectively, we obtain short exact sequences of line bundles
0\rightarrow\mathcal{O}_{\mathbb{P}^{4}}(t-(q+1))\rightarrow\mathcal{O}_{\mathbb{P}^{4}}(t)\rightarrow\mathcal{O}_{H_{0}}(t)\rightarrow 0,
and
0\rightarrow\mathcal{O}_{H_{0}}(t-(q^{3}+1))\rightarrow\mathcal{O}_{H_{0}}(t)\rightarrow\mathcal{O}_{H_{0}\cap H_{1}}(t)\rightarrow 0,
(see Section 7.3 in [Iitaka82]). These sequences give long exact sequences of cohomology groups,
\begin{split}
0\rightarrow H^{0}(\mathbb{P}^{4},\mathcal{O}_{\mathbb{P}^{4}}(t-(q+1))) & \rightarrow H^{0}(\mathbb{P}^{4},\mathcal{O}_{\mathbb{P}^{4}}(t))\rightarrow H^{0}(H_{0},\mathcal{O}_{H_{0}}(t))\rightarrow \\
& H^{1}(\mathbb{P}^{4},\mathcal{O}_{\mathbb{P}^{4}}(t-(q+1)))\rightarrow H_{1}(\mathbb{P}^{4},\mathcal{O}_{\mathbb{P}^{4}}(t))\rightarrow \\
& H^{1}(H_{0},\mathcal{O}_{H_{0}}(t))\rightarrow H^{2}(\mathbb{P}^{4},\mathcal{O}_{\mathbb{P}^{N-1}}(t-(q+1)))\rightarrow \ldots,
\end{split}
and
\begin{split}
0\rightarrow H^{0}(H_{0},\mathcal{O}_{H_{0}}(t-(q^{3}+1)) & \rightarrow H^{0}(H_{0},\mathcal{O}_{H_{0}}(t))\rightarrow \\
H^{0}(H_{0}\cap H_{1},\mathcal{O}_{H_{0}\cap H_{1}}(t))& \rightarrow H^{1}(H_{0},\mathcal{O}_{H_{0}}(t-(q^{3}+1))\rightarrow \ldots
\end{split}
By the formulas of Theorem III.5.1 in [Hartshorne77] for the cohomology of projective space, the first long exact sequence reduces (for any t) to
\begin{split}
0\rightarrow H^{0}(\mathbb{P}^{4},\mathcal{O}_{\mathbb{P}^{4}}(t-(q+1))) & \rightarrow H^{0}(\mathbb{P}^{4},\mathcal{O}_{\mathbb{P}^{4}}(t))\rightarrow \\
H^{0}(H_{0},\mathcal{O}_{H_{0}}(t))\rightarrow 0\rightarrow 0\rightarrow H^{1}(H_{0},\mathcal{O}_{H_{0}}(t))\rightarrow 0\rightarrow \ldots
\end{split}
Hence, for any t, H^{1}(H_{0},\mathcal{O}_{H_{0}}(t))=0 and
\begin{aligned}
dim H^{0}(H_{0},\mathcal{O}_{H_{0}}(t)) & =dim H^{0}(\mathbb{P}^{4},\mathcal{O}_{\mathbb{P}^{4}}(t))-dim H^{0}(\mathbb{P}^{4},\mathcal{O}_{\mathbb{P}^{4}}(t-(q+1)) \\
& =\binom{4+t}{t}-\binom{4+t-(q+1)}{t-(q+1)}.
\end{aligned}
Consequently, for any q+1<t<q^{3}+1, the last sequence then gives
\Gamma(Z,\mathcal{O}_{Z}(t))\cong H^{0}(H_{0},\mathcal{O}_{H_{0}}(t)),
so, when in the range wherein the bound on the minimum distance ensures the injectivity of the evaluation map, the dimension of the code is
k=\sum_{\substack{i_{1},i_{2}\in\mathbb{N}^{2} \\ i_{1}+i_{2}=b}}\binom{4+i_{1}t_{1}+i_{2}t_{2})}{i_{1}t_{1}+i_{2}t_{2})}-\binom{4+i_{1}t_{1}+i_{2}t_{2})-(q+1)}{i_{1}t_{1}+i_{2}t_{2})-(q+1)}.
Finally, by Proposition 9.4 in [EisenbudHarris16], any section of L\vert_{T_{2 B_{i}}} (recall that T_{2 B_{i}}=p_{2}^{-1}(B_{i})) intersects C_{i}\subset T_{4 B_{i}} in an hyperplane, so \mathit{l}=0 and we can conclude the following bound for the minimum distance:
d\geq n-(q^{5}+1)(q^{3}+1)(q^{2}+1)b.