Added lantern state enum

Added lantern state enum, replaced the old int/ID state based method.