Added an alarm feature as well as many other changes.