Two new functions

added setClock and applySettings.