Studies on the synthesis and biological activity of some pharmaceutically important Heterocyclic compounds