Revert "Revert "Added Distance Tracking""

This reverts commit c72b66650a03a3f0d5469ade3144da6ff26afa2c.
Overhaul, Cleanup, Hot target detection
Math stuff

Fixed a few mathematical errors (I think). One question, why are there
pointers in the if statements and no condition? What is done or checked?
Merged master branch into distance

Merged master branch into distance, shouldn't make a difference, but
probably should do this. If not roll back.
Merge remote-tracking branch 'origin/master' into Distance
Sync with Master

Moving to Master Brance
Merge remote-tracking branch 'origin/Distance' into Alloy