Characterization of M dwarfs using optical mid-resolution spectra for exploration of small exoplanets. (28th December 2020)