Studies on the synthetic and mechanistic aspects of the Chemistry of indoles and related heterocycles