some updates to math
update
Merge pull request #6 from bestpaul1985/XuXo-master

Xu xo master