Merge pull request #359 from cpelley/math_exponential

add exponential to math
fixed converting reference times