I am reading Mumford's book abelian varieties. On page 97, he defined a tangent vector at $x \in X$ (where $X$ is a scheme of finite type over an algebraically closed field $k$ and $x$ is a point of $X$) to be a derivation $\mathcal{O}_{X,x} \to k$. I thought you can only define a derivative of $A$ into $M$ is $M$ is an $A$ module, which doesn't seem to be the case here?
Then in the proof of the proposition on page 97, he makes the observation that, if $A$ is a $k$-algebra and $B$ is an $A$-algebra, the set of $k$-derivations of $A$ into $B$ is in bijection with the set of morphisms $\phi: A \to B[\epsilon]/(\epsilon^2)$ mapping $a$ to $a \cdot 1 +$ a multiple of $\epsilon$, and the bijection is defined as follows: a derivation $D$ corresponds to $\phi(a) = a \cdot 1 + (Da) \cdot \epsilon$. Going back to a tangent vector at a point of a scheme, since $k$ is not an $\mathcal{O}_{X,x}$-module, this "$a \cdot 1$" seems to be not well defined.
He then claims that given the above observation, giving a tangent vector at $x \in X$ is equivalent to giving a morphism $\operatorname{Spec} k[\epsilon]/(\epsilon^2) \to X$ such that the image of $\operatorname{Spec} k \to \operatorname{Spec} k[\epsilon]/(\epsilon^2) \to X$ is the point $x$, which I also can't really understand.
Thank you in advance for any help!