Bugfix. Queue alarms if lastqueuedevent is in the past. Code cleanup. Version bump.