Added alarm scheduling

----------------------
added code to schedule alarm and fire it