Changed memorization implementation; added ability to import new spells