Galerkin discontinuous approximation of the MHD equations