rounding errors fixed
Merge origin/master