Moved SpellManager functions out of the class since they were all static anyway.  Specified to ignore any files with names that end in '~'.