Multi-Resolution Analysis for the discontinuous Galerkin scheme and improved trouble cell indication