Some changes for more precise result
Merge pull request #25 from kalaomer/patch-1

* some changes for more precise result by @kalaomer