A QMD description of the interaction of ion beams with matter