Flatness, tangent systems and flat outputs