Added Log class and init creation AppPreferences class