Commented out the mean subtraction before finding TOP and BOTTOM.
This is so that we may get an accurate estimate of dn/n.