Studies in synthetic and structural chemistry of certain 5/6 membered nitrogen, sulphur and oxygen containing heterocyclic compounds