Third commit, sounds alarm

This code sounds alarm, and makes sure it ends only when the user enters
the given text.
However, there is bug in the code, the alarm starts as soon as it is
set, irrespective of the time it is supposed to start. Will be fixed
later.