Modify logging
Remove dead code
Remove obsolete IcCounter, fix dynamic NPC IDs