Added and fixed condition2 assignment
Final Implementation of Alarm class
Fixed some compilation errors and wrong types