refactoring namespace
adding method to check if alarm is up