Separated autosave-mode from save-on-exit-mode.

Made autosave-reset-timer only work in autosave mode.

Improved some docstrings.