prevent scaling factor from being 0 when weights are integers.
Merge pull request #2 from Bractlet/allow-integer-weights

prevent scaling factor from being 0 when weights are integers.