Changed scheduled update to use system alarms
added code to get location