Add math instance initializing
Merge pull request #18 from mr-m/master

Add math instance initializing