doc and cleanup for shared prefs utils