Added more math functions. Added monad alpha version