Since you said in the comment that your main problem is the internal law on $\operatorname{End}(M)$, I'll answer that and leave the rest as an exercise. It is straightforward, but if you have any trouble, feel free to ask.
Suppose you are given $f, g\in\operatorname{End}(M)$. Then the internal law is defined as $(f*g)(m)=(f\circ g)(m)=f(g(m))$