add definition to alarm fields
remove obsolete device api
Merge pull request #48 from michaelfung/master

add definition to alarm fields