Refactoring

Double is not a proper type for big float numbers and calculation.