Fixed Shared prefs - username/password/IP are saved! Added some comments for code refactoring.