Load of Math BS

Math lib rewrite... A lot of changes gonna happen so hold onto to ur
butts...