various fixes and improvements to spellbook and spells
fixed #106