added autosave preference
organized imports
added missing files