functionality fix and cleanup
added alarms API stub