finished the framework, the multiple alarms can be realized

there  may be bugs ,will continue testing.