add custom exponent fuction
we can use this for our custom configs
Merge pull request #2 from huuep/custom_config

add custom exponent fuction