fixed bug in algorithm for determining signed overflow
clarified some variable names