Preferences usage was added (settings class is now obsolete)
Argument to clear preferences (when calling Main class add 'clear') was added