Improved settings modal
Improved global settings
Added calc distance method for the alarms
Made settings modal idiot save