added shared prefs write and doc folder