Added documentation and autosave wrapper.