add alarm helper functs
add alarm-related examples