More comments, and add MAX_IDLE_MS_BEFORE_DESPAWN to replace the magic number used previously