add DEV_ENV
check if alarm exists before creating it

old implementation created a new alarm every time the script was loaded (all
the time) this could've meant that it kept overriding the old alarm
periodically.
fix comment