refactoring and adding docs.
refactoring and adding docs to obotSharedPreferences.java.