Various Bugfixes. Exp remainder added.