Lectures on deformations of singularities