fix typo in last commit.
package is a standard lua module, not a good variable name.
log name of script.
clean up some dealings with monsters and NPCs