Autotune Commit

- Continued working on autotune.
- General cleaning up and testing things.
- Added a static Math to keep the maths.