Finished removing old maths. Compiles

Signed-off-by: Aleksi Sapon <QcTechs@gmail.com>