Modified math library.
Fix up C users of math.
Fix lua code, and badly named function.
Remove non-existant function from lua
Fixed little mistake!