Recreated addEvent() method and signed it as deprecated
Alarm component added to unit test.
AddComponent() method has been used in examples.