fix docstring typos in mechanics.functions

Hi,
I just spotted a few typos while trying to learn how to use `mechanics`. Here is a quick patch.

I hope I didn't mess up something else!

best,
Pierre