Proposition 6.6 in Hartshorne II seeks to show that $\operatorname{Cl} (X \times \mathbb A^1) \simeq \operatorname{Cl} X$ for $X$ Noetherian, integral, separated, and regular in codimension 1.
A point of codimension 1 in $X \times \mathbb A^1$ is called type I if its image $y$ under the projection to $X$ is codimension 1. We can see such an $x$ is the generic point of the fiber of $y$.
A point of codimension 1 in $X \times \mathbb A^1$ is called type II if its image is the generic point of $X$.
I understand on a technical level, thanks to other questions on this site, the first two paragraphs of the proof. However, when Hartshorne goes to show the map
$$\pi^* : \operatorname{Cl} X \to \operatorname{Cl} (X \times \mathbb A^1)$$
given by $\sum n_i Y_i \mapsto \sum n_i \pi^{-1} Y_i$, where $\pi$ is the projection to $X$, I do not understand the following statements:
Injectivity: If $D = \operatorname{div} f \in \operatorname{div} X$, then $\pi^*D$ involves only prime divisors of type I. Why?
Injectivity: The above forces $f \in K$, the function field of $X$. Why? He gives the reasoning that otherwise $f = g/h$, with $g, h \in K[t]$, which I understand, but then claims that if both are not in $K$, the divisor of $f$ will involve some type II divisor. Why is this true?
Surjectivity: Why does it suffice to check that prime type II divisors are linearly equivalent to sums of prime type I divisors? Do we already know we are surjective on type I divisors?
Surjectivity: Why does localizing a type II prime divisor at the generic point give us a prime divisor in the spectrum of $K[t]$?
Assuming the above statement, we see this divisor corresponds to a principal prime $P = (f)$ in $K[t]$. I see that just fine. Hartshorne then claims the divisor of $f$ is $Z$ plus possibly some purely type I divisors. Why?
I get the sense I am not thinking about divisors in general correctly, and, more specifically, I am not truly understanding the definition and implementation of type I and II divisors.