Reset undo stack after setting the doc contents - Closes #10