Add exception for zero division, add exponent function