1) Fixed a serious issue with the parameters of spells used by monters; 2) Spell names are now case-insensitive; 3) Added two useful functions for debugging.