Added non linear stepping

Closure externs instead of exports.