the social codes , which seemed to take a rather narrow interpretation on the teachings of the prophet morell , had apparently given way to a highly sophisticated and specialized hierarchy of roles by which their society functioned .