fixed some issues with number rounding (#16)