Added handling of exponents

Slightly better than my last suggestion. Why doesn't git let you edit existing pull requests??