The Epic Math Refactor

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

The Epic Math Refactor