Fixed repeating event alarm triggering(?); added log into sd card