updated preferences to use sharedpreference; cleanup cleanupgit status