some improvements

removed unnecessary constants for integer ranges and beautified the
integer power