add try exception and fix some bugs etc
smartter
bug fix...
better precision
add one more test
Merge remote-tracking branch 'origin/master'