Question in Hungerford regarding field extensions In Algebra by Hungerford, page 237 the sketch of proof for Theorem 1.10:

Theorem 1.10: If $K$ is a field and $f\in K[x]$ polynomial of degree $n$, then there exists a simple extension field $F = K(u)$ of $K$ such that $u\in F$ is a root of $f$.

In the proof I could not understand one part:

Let $\pi:K[x]\to K[x]/(f) = F$ be the canonical projection, then $f(\pi(x)) = 0$

I understand all the theorems before this point and every sentence until this one. If I understood correctly, $\pi$ maps $g(x)$ to $r(x)$ where $g = fs+r$ by division algorithm. I can only see why $\pi(f) = 0$ but I cannot see why $f(\pi(x)) = 0$. Some explanation please. Thank you.

EDIT: Also I don't know how to prove that $F = K(\pi(x))$.  

$\pi$ is a homomorphism, so $\pi(f(x)) = f(\pi(x))$.
