fixed bug in spell sorter and got npcs module working