The Gelfand transformation identifies function spaces $C_0(X)$ for locally compact Haussdorff $X$ with commutative $C^*$ Algebras. Additionally there is a statement that if $f: X \to Y$ is a proper and continuous map, this induces a $*$-morphism $f_*: C_0(Y) \to C_0(X)$ via $f_*(g) = g \circ f$.
The condition that the map be proper is needed for the induced map to be well defined, for example if $X$ is not compact then a constant map $f: X \to Y$ will not send $C_0$ functions to $C_0$ functions. On the other hand the proof that $f_*(g)$ is in $C_0(X)$ if $g \in C_0(Y)$ is rather easy: if $\epsilon >0$, $K$ compact so that $g(Y-K)\subset B_\epsilon(0)$ then $f^{-1}(K)$ is compact and $$f_*(g)(X-f^{-1}(K))=(g\circ f)(X-f^{-1}(K))\subset g(Y-K) \subset B_\epsilon(0)$$
There is another direction, given two commutative $C^*$ Algebras $A, B$ so that $A \cong C_0(X)$ and $B \cong C_0(Y)$ there is a statement that a proper $*$-morphism $\varphi: A \to B$ induces a proper continuous map $\varphi_*: Y \to X$. A $*$-morphism is called proper if it maps approximate identities to approximate identities.
Can somebody tell me how this map can be constructed (and why proper-ness is needed)? Also can somebody show me an example of a non-proper $*$-morphism that isn't trivial (the zero map)?