Number of approximation and default values added. 

cf. constructor
FIxing previous version bug...

My bad...
Merged pull request from bczy/smath.js@24edbda7290ece1cc32ad3ab1cf300397e9f7370 and modified test page for resolution change
Merge branch 'bczy-master'