added some complex math functions and enabled changing the exponent by control-dragging with the mouse