I haven't looked at the code itself, but I do understand a few things about programming. For example, a few months ago I found a rounding error in the table of block rewards on the bitcoin wiki. (And integers are math too, you know.)
On the other hand, I wonder if you really understand how the protocol is supposed to work. Can you see why the original design did not have non-mining relay nodes?
OK, now you've shifted your position to open crackpottery.
The original implementation certainly had non-mining relay nodes. In the original implementation mining (then CPU-only) was explicitly optional. The shift between the original and current is just that nowadays the probability that the randomly connected relay node also does mining is much lower.