Implemented fixes for "DC correction" + better initialization with the "alternative boundary" mode.
Added regression test script.