Move p_class to class, update
Make list-magic-realms.h
Move p_hist to history, tidy and document