There is a tight connection between module morphisms and submodules.
Kernels
Suppose is an -module morphism. Let denote the usual kernel of as a morphism of abelian groups, i.e., . One can easily verify this set is not only a subgroup of (when viewed as an abelian group), but also a submodule of . It is still called the kernel of the morphism . One can also give a definition of the kernel without reference to any elements using the zero morphism (see here).
For future reference, let's cryptically note that the kernel of the module morphism should really be the "inclusion" morphism , where is the submodule defined above.
Images
Similarly to the kernel, let denote the usual image of (as a set map or group morphism). As with the kernel, this set is not just a subgroup of (when viewed as abelian group) but also a submodule of . It is still called the image of the morphism .
As with the kernel, we should really define the image of as a certain "special" module morphism through which "factors," but we'll hold off on that until we study Yoneda's Lemma and maybe even abelian categories.
Hom-sets? More like hom-modules!
For each pair of -modules and , we can consider the set of all -module morphisms from to . (You might also see this set sometimes denoted .) This set has a natural (!) structure of an abelian group, where addition of morphisms is defined by "addition of outputs"; i.e., .
Of course, to be careful one should verify that if are -module morphisms, then defined in this way is indeed an -module morphism. And then we should verify that this operation on does indeed give the set the structure of an abelian group. (What's the additive identity? Can you describe the additive inverse of a morphism ?) We will skip those details here (at least for now), but I promise there are no surprises. Everything checks out as directly as you might hope.
Along the same lines, when is commutative the set even has the structure of an -module. Specifically, define a left action of on the hom-set through the -action on the outputs, i.e., using the -action in . In other words, for each -module morphism and define a map by . As above, technically we should check that is indeed a module morphism . It's in the compatibility with the -actions that the commutativity of is required (or at least enough to guarantee the result we need). Indeed, for each and we must verify that . On the left-hand side we have
On the other hand, we have
If is commutative, then and so , as desired.
When , one can check that the set has a natural structure of a ring (with unity). It is called the endomorphism ring of and is sometimes denoted ; when is commutative, the ring has a natural structure of an -algebra.
Enriched categories
Discoveries like these, namely of categories in which hom-sets naturally have additional structure, inevitably lead one to the concept of an enriched category. A quick, informal definition of an enriched category is that it is a category in which the hom-sets have an algebraic structure (e.g., are abelian groups), together with the requirement that the composition operation respects that structure (e.g., define morphisms between abelian groups).