Gravar-mail: Machine learning force fields and coarse-grained variables in molecular dynamics: application to materials and biological systems