added assertion to small range correction
fixed another small range correction bug where arguments to log2 were not cast to double prior to division