Finite Rank Perturbations, Scattering Matrices and Inverse Problems