Alarm function added
Life almost working