The Epic Math Refactor

Signed-off-by: Aleksi Sapon <QcTechs@gmail.com>
Merge pull request #534 from DDoSQc/master

The Epic Math Refactor