Changed check for autosave and added doc