Added watchdog, low power location updates, refactoring