fix doctests
support exp

fixes #111