Added DefaultPrefs.json so we have a switch to toggle debugging log info
Rewrote the code