Analysis of discontinuous Galerkin schemes for flow and transport problems