Ultrafast electron diffraction and time resolved lattice dynamics