Add defaultErrFxn and an err fxn to module state