Added ECPreferencesWindow and example