Created an undo depth setting, closes #31