These deities formed a core pantheon; there were additionally hundreds of minor ones. who organized large building projects?