Viharas were for the purpose of living, Chaityas were assemblies for the purpose of discussions. Further, Chaityas were with Stupas, Viharas did not have stupas.
The Sixth Pillar Edict of Asohka talks about welfare of people. The Ashokan pillars contain motifs which have a rich and varied symbolism in resonance with many prevailing Indian religious traditions.