added a bunch of math functions
added some utils