Why are the morphisms of the category of sets functions? Shouldn't the morphisms take an object in a category and turn it into another object of the category, i.e. map Set to Set. I don't understand how e.g. $f(x)=x^2$ is a map from a set to a set.
If the morphism had been the image of a set under a function it would make more sense to me.
This is what is called a functor.
A morphism is (more or less) exactly a generalization of functions between sets. One function corresponds to one morphism / arrow.
Your example $f(x) = x^2$ might be considered as a morphism $f: \mathbb{R} \rightarrow \mathbb{R}$. Sometimes we also write $f \in Hom(\mathbb{R}, \mathbb{R})$ or $f \in Mor(\mathbb{R}, \mathbb{R})$, but those are just different notations for the same thing.
Morphisms are one of the building blocks of categories. Each category $C$ as some objects $O \in Ob(C)$, and for each pair of objects $O, P \in Ob(C)$, there is a set of morphisms $Mor(O, P)$.
Does that make something more clear?