Fixed mob ID assignment, and other small things.