Use the same object for this.mods and this.ctx.mods within default mode

closes #441 

Plus code style fixed

\cc @veged @indutny