-Writes default preferences file if it doesn't exist