Studies on synthesis and characterisation of some novel heterocyclic compounds and their biological activity