corrections to exp function

corrections to exp function