Constant::getValue() fixed and new constructor

Now returns the proper double value. There is also a new constructor to
accept coefficient and exponent arguments as well.