Triṣaṣṭiśalākāpuruṣacarita (The Deeds of the Sixty-Three Eminent Men) has a last section on Mahāvīra which includes a kind of Jain utopia, in which the king will usually avoid prostitutes, and the queen will be chaste.
His Yogaśastra (Treatise on Yoga) takes yoga in a very broad sense and becomes a compendium on appropriate Jain behaviour.
"Hemacandra." The Concise Oxford Dictionary of World Religions. . Encyclopedia.com. (August 19, 2018). http://www.encyclopedia.com/religion/dictionaries-thesauruses-pictures-and-press-releases/hemacandra
"Hemacandra." The Concise Oxford Dictionary of World Religions. . Retrieved August 19, 2018 from Encyclopedia.com: http://www.encyclopedia.com/religion/dictionaries-thesauruses-pictures-and-press-releases/hemacandra