WIP mod_exp.c changes.
Merged mod_exp with existing one that actually includes.