added a new function.
update MathJS.
implemented a few methods.